<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-username" data-rule="" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
        </div>
    </div>

<!--1 商户 -->
    {if $row['type']==1}
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Logo')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-logo" data-rule="" class="form-control" name="row[logo]" type="text" value="{$row.logo|htmlentities}">-->

<!--            -->

<!--        </div>-->
<!--    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Logo')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-logo" data-rule="" class="form-control" size="50" name="row[logo]" type="text" value="{$row.logo|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-logo" class="btn btn-danger faupload" data-input-id="c-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-logo"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-logo" class="btn btn-primary fachoose" data-input-id="c-logo" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-logo"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-logo"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company_name" data-rule="" disabled="disabled" class="form-control" name="row[company_name]" type="text" value="{$row.company_name|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-image" data-rule="" class="form-control" size="50" name="row[image]" type="text" value="{$row.image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Certificate_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-certificate_image" data-rule="" class="form-control" size="50" name="row[certificate_image]" type="text" value="{$row.certificate_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-certificate_image" class="btn btn-danger faupload" data-input-id="c-certificate_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-certificate_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-certificate_image" class="btn btn-primary fachoose" data-input-id="c-certificate_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-certificate_image"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-certificate_image"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('法人姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-corp_username" data-rule="" disabled="disabled" class="form-control" name="row[corp_username]" type="text" value="{$row.corp_username|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('法人联系电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-corp_mobile" data-rule="" disabled="disabled" class="form-control" name="row[corp_mobile]" type="text" value="{$row.corp_mobile|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('法人身份证')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-corp_sfzz" class="form-control" size="50" name="row[corp_sfzz]" type="text" value="{$row.corp_sfzz|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-corp_sfzz" class="btn btn-danger plupload" data-input-id="c-corp_sfzz" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-corp_sfzz"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-corp_sfzz" class="btn btn-primary fachoose" data-input-id="c-corp_sfzz" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-corp_sfzz"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-corp_sfzz"></ul>
        </div>
    </div>

<!--    corp_sfzz-->

    {else/}
<!--    desc-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('捐赠人描述')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-desc" data-rule="" disabled="disabled" class="form-control" name="row[desc]" type="text" value="{$row.desc|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('分类id')}:</label>
        <div class="col-xs-12 col-sm-8">
<!--            <input id="c-cate_id" data-rule="" class="form-control" name="row[cate_id]" type="text" value="{$row.desc|htmlentities}">-->

            <select id="cate_id" class="form-control" disabled="disabled" data-rule="required" name="row[cate_id]" style="width: 30%;">
                <option value="">请选择</option>
                {foreach name="cateList" id="vo1"}
                <option value="{$vo1.id}" {if $row.cate_id == $vo1.id}selected{/if}>{$vo1.name}</option>
                {/foreach}
            </select>
        </div>
    </div>

    {/if}



    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('City')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class='control-relative'><input id="c-city" data-rule="" class="form-control" data-toggle="city-picker" name="row[city]" disabled="disabled" type="text" value="{$row.city|htmlentities}"></div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" data-rule="" disabled="disabled" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>



    {if $adminid==1 ||  $adminid==7}






<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Shopcate_id')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-shopcate_id" data-rule="" data-source="shopcate/index" class="form-control selectpage" name="row[shopcate_id]" type="text" value="{$row.shopcate_id|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Bank_card')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-bank_card" data-rule="" class="form-control" name="row[bank_card]" type="text" value="{$row.bank_card|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Alipay')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-alipay" data-rule="" class="form-control" name="row[alipay]" type="text" value="{$row.alipay|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="" disabled="disabled" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">爆品扣点(%):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bao_deduct" data-rule=""   class="form-control" name="row[bao_deduct]" type="number" value="{$row.bao_deduct|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">普通扣点(%):</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pu_deduct" data-rule=""   class="form-control" name="row[pu_deduct]" type="number" value="{$row.pu_deduct|htmlentities}">
        </div>
    </div>

        {if $row['status'] ==1}

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
            <div class="col-xs-12 col-sm-8">

                <div class="radio">
                    {foreach name="statusList" item="vo"}
                    <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label>
                    {/foreach}
                </div>

            </div>
        </div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">{:__('失败提示')}:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-note" data-rule=""  class="form-control " name="row[note]" type="text" value="{$row.note|htmlentities}">
            </div>
        </div>

        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            </div>
        </div>
        {/if}
    {/if}

</form>
